// Key.h: interface for the CKey class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_KEY_H__22F8985C_4D3A_4B4E_B5FE_EFF14291D9E8__INCLUDED_)
#define AFX_KEY_H__22F8985C_4D3A_4B4E_B5FE_EFF14291D9E8__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "DrawElement.h"
#include "KeyProperties.h"
#define WIDTH	30
#define HEIGHT	30

class CKey : public CDrawElement  
{
public:
	CKey();
	CKey(int color);
	virtual ~CKey();

public:
	CString href;
	int sharp;
	int KeyType;
	COLORREF myColor;

public:
	void Draw(CDC* pDC);
	void ShowProperties();
	
public:
	CString rtValue;
	void changeKeyType(int type);
	void parseKeyCodeStr();
	void parseHrefStr();
	void parsePosStr();
	CString getkeyCode();
	CString getHref();

};

#endif // !defined(AFX_KEY_H__22F8985C_4D3A_4B4E_B5FE_EFF14291D9E8__INCLUDED_)
